.chat-container {
  .messages {
    .message {
      position: relative;
      max-width: 85%;
      padding: 12px 16px;
      margin: 8px 0;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      
      &.user {
        margin-left: auto;
        background: linear-gradient(135deg, #4c8bf5, #3b7de9);
        color: white;
        border-bottom-right-radius: 4px;
        
        &:after {
          content: '';
          position: absolute;
          right: -8px;
          bottom: 0;
          width: 0;
          height: 0;
          border: 8px solid transparent;
          border-left-color: #3b7de9;
          border-bottom-color: #3b7de9;
        }

        .message-actions {
          .el-button {
            color: #4c8bf5;
          }
        }
      }
      
      &.assistant {
        margin-right: auto;
        background: #f5f7fa;
        color: #333;
        border-bottom-left-radius: 4px;
        
        &:after {
          content: '';
          position: absolute;
          left: -8px;
          bottom: 0;
          width: 0;
          height: 0;
          border: 8px solid transparent;
          border-right-color: #f5f7fa;
          border-bottom-color: #f5f7fa;
        }
      }
      
      .message-text {
        margin: 0;
        line-height: 1.5;
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 14px;
      }
      
      .message-actions {
        position: absolute;
        top: 8px;
        right: 8px;
        opacity: 0;
        transition: opacity 0.2s ease;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 4px;
        padding: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1;
        
        .el-button {
          padding: 4px 8px;
          font-size: 14px;
          
          &:hover {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 4px;
          }
        }
      }
      
      &:hover .message-actions {
        opacity: 1;
      }

      .generated-image {
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
      }
    }
  }
  
  .input-area {
    position: relative;
    margin-top: 16px;
    
    .typing-indicator {
      position: absolute;
      bottom: 100%;
      left: 0;
      font-size: 12px;
      color: #909399;
      margin-bottom: 4px;
    }
  }
}